package com.mew.slots.core.game.hlsd.message;

import com.mew.slots.core.common.messge.response.SlotsBonusPlayResponseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.ToString;

/** 救蛋
 * @author dylin
 */
@Data
@ToString(callSuper = true)
public class HlsdBonusPlayResponseMessage extends SlotsBonusPlayResponseMessage {
    private int index;//点击位置
    private int rate;//0 倍数
    private int allRate;//总倍数
    private int isGameOver;//游戏是否结束
    private long payment;//赔付

    @Override
    public void write(ByteBuf b) {
        super.write(b);
        writeInt(b,index);
        writeInt(b,rate);
        writeInt(b,allRate);
        writeInt(b,isGameOver);
        writeLong(b,payment);
    }

    @Override
    public HlsdBonusPlayResponseMessage read(ByteBuf byteBuf) {
        return null;
    }
}
